package com.woniu.service;

import com.woniu.entity.PageResult;
import com.woniu.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.vo.QueryUserVo;
import com.woniu.vo.UserDetailVo;
import com.woniu.vo.UserInformationVo;

import java.text.ParseException;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author doujiao
 * @since 2022-10-14
 */
public interface IUserService extends IService<User> {

    PageResult queryByPage(Long currentPage, Long pageSize, QueryUserVo userVo);

    UserDetailVo queryDetailByUserId(Long userId);

    Boolean edit(UserDetailVo userDetailVo);

    Boolean removeByIdPlus(Long id);

    boolean add(User user);

    /**
     * 根据id查询服务管理的居民信息
     * @param userId
     * @return
     */
    UserInformationVo getPeopleById(Long userId) throws ParseException;

    /**
     * 修改用户发布状态
     * @param userId
     * @return
     */
    boolean saveStatus(Long userId);
}
